class Fan:
    """
    定义一个番剧实体类，存储番剧详细信息
    """
    media_id = None
    ep_id = None
    # 类型：独家1 会员专享0
    badge_type = None
    # 全13话
    index_show = None
    # 是否完结 1
    is_finish = None
    # 链接
    link = None
    # 评分
    score = None
    # season_id
    season_id = None
    # 子标题
    subTitle = None
    # 标题
    title = None

    like = None  # 点赞
    coin = None  # 投币数
    favorite = None  # 收藏
    share = None  # 分享
    reply = None  # 评论数

    views = None  # 播放数
    danmakus = None  # 弹幕数
    series_follow = None  # 系列追番人数

    label = None  # 标签
    year = None  # 年份

    def __init__(self):
        super().__init__()

    def to_list(self) -> list:
        return [self.media_id, self.ep_id, self.badge_type, self.index_show, self.is_finish, self.score, self.season_id,
                self.subTitle, self.title, self.like, self.coin, self.favorite, self.share, self.reply,
                self.views, self.danmakus, self.series_follow, self.label, self.year]

    def to_string(self):
        return [self.media_id, self.ep_id, self.badge_type, self.index_show, self.is_finish, self.score, self.season_id,
                self.subTitle, self.title, "-->", self.like, self.coin, self.favorite, self.share, self.reply, "-->",
                self.views, self.danmakus, self.series_follow, "-->", self.label, self.year]
